import request from '@/utils/request'

//数据管理
const REPORT_URL = 'api/admin/report'


//导出运营数据
export const exportInfor = ()=>{
    return request.get(REPORT_URL+'/export')
  }

//订单统计
export const ordersStatistics = (beginTime, endTime)=>{
    return request.get(REPORT_URL+'/ordersStatistics?begin='+beginTime
            +'&end=' + endTime
    )
}

//top10
export const top10 = (beginTime, endTime)=>{
    return request.get(REPORT_URL+'/top10?begin='+beginTime
            +'&end=' + endTime
    )
}

//营业额
export const turnoverStatistics = (beginTime, endTime)=>{
    return request.get(REPORT_URL+'/turnoverStatistics?begin='+beginTime
            +'&end=' + endTime
    )
}

//会员统计
export const userStatistics = (beginTime, endTime)=>{
    return request.get(REPORT_URL+'/userStatistics?begin='+beginTime
            +'&end=' + endTime
    )
}